const Mock=require('mockjs');
const data=Mock.mock({
    "list|30":[{
        img:"@image(50x50,@color)",
        text:"@ctitle(2,3)",
        id:'@id'
    }]
})
module.exports = {
    devServer:{
        before(app){
            app.get('/list',(req,res)=>{
                res.send(data.list)
            })
        }
    }
}